package cn.wolfcode.crm.domain;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.ArrayList;
import java.util.List;

@Setter
@Getter
@ToString
public class Employee {
    private Long id;
    private String name;
    private String password;
    private String email;
    private Integer age;
    private boolean admin;
    // private Long dept_id;
    // 设置关联属性,专门用来封装部门数据
    private Department dept;
    // 设置关联属性
    private List<Role> roles = new ArrayList<>();
}